package com.gitee.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AdminBo {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @NotBlank(message = "头像不能为空")
    private String avatarUrl;

    @NotNull(message = "性别不能为空")
    private Boolean gender;

    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    @NotNull(message = "账号状态不能为空")
    private Boolean enabled;

    @NotEmpty(message = "角色不能为空")
    private List<Integer> roleIds;
}
